<template>
	<view class="container">
		<view class="xy-com">
			<rich-text :nodes="notice"></rich-text>
		</view>
	</view>
</template>

<script>
	import loginApi from "@/api/login.js"
	export default {
		data() {
			return {
				notice: ""
			}
		},
		onLoad(e) {
			this.getInfo(e.type);
			uni.setNavigationBarTitle({
				title: e.name
			})
		},
		methods: {
			//点击跳转
			menuClick(item) {
				this.$common.href(item.url);
			},
			async getInfo(type) {
				let res = await loginApi.getNotice({
					name: type
				})
				this.notice = res.data
			}
		}
	}
</script>

<style lang="scss" scoped>
	@import "appletDeal.scss";
</style>
